import type { App } from 'vue'
import DictTag from './DictTag.vue'
import EaTag from './EaTag.vue'
import { useDict } from './dict'


// 安装函数
const installDict = (app: App) => {
  app.component("DictTag", DictTag)
  app.component("EaTag", EaTag)
  app.config.globalProperties.useDict = useDict
}

// 导出组件
export {
  DictTag,
  EaTag,
  useDict,
  installDict
}


// 默认导出
export default {
  installDict,
  version: '1.0.0'
}